package com.wxy.gks.springbootprojectday22practice.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Accessors(chain=true)
public class Employee implements Serializable{

	private Integer id ;
	
	private String empName ;
	
	private String phone ;
	
	private String address ;
	
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date  birthday ; 
	
	private Dept dept ;
}
